# Maintainer: Noam Preil <pleasantatk@gmail.com>
pkgname=pavucontrol
pkgver=4.0
pkgrel=0
pkgdesc="Pulseaudio Volume Control, GTK based mixer for Pulseaudio"
url="https://freedesktop.org/software/pulseaudio/pavucontrol/"
arch="all !mips !mips64" # blocked by glade on mips
license="GPL-2.0-or-later"
depends="pulseaudio"
makedepends="m4 automake gtkmm3-dev glade-dev pulseaudio-dev libcanberra-dev"
source="https://freedesktop.org/software/pulseaudio/pavucontrol/pavucontrol-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--datadir=/usr/share \
		--disable-lynx \
		--disable-nls
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="fd58657d399349f22b52b55f946ea9e62f6278f087c945a54f4b61aa72fde92fb69f9bf7762f5db88235a0038535023faf92d8bb1f5d9f8b7168ccb2166386d3  pavucontrol-4.0.tar.gz"
